package com.mvp.shq.washer.utils;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;

import com.mvp.shq.washer.ui.aboutUs.AboutUsActivity;
import com.mvp.shq.washer.ui.contactUs.ContactUsActivity;
import com.mvp.shq.washer.ui.forgetPWD.ForgetPWDActivity;
import com.mvp.shq.washer.ui.login.LoginActivity;
import com.mvp.shq.washer.ui.main.MainActivity;
import com.mvp.shq.washer.ui.modifyMobile.ModifyMobileActivity;
import com.mvp.shq.washer.ui.news.NewsActivity;
import com.mvp.shq.washer.ui.orderConfirm.OrderConfirmActivity;
import com.mvp.shq.washer.ui.orderDetail.OrderDetailActivity;
import com.mvp.shq.washer.ui.reg.RegActivity;
import com.mvp.shq.washer.ui.resetPwd.ResetPwdActivity;
import com.mvp.shq.washer.ui.resetPwd.ResetPwdConstract;
import com.mvp.shq.washer.ui.setting.SettingActivity;
import com.mvp.shq.washer.ui.shareApp.ShareAppActivity;
import com.mvp.shq.washer.ui.userCenter.UserCenterActivity;
import com.mvp.shq.washer.ui.wallet.WalletActivity;

/**
 * Created by Administrator on 2017/8/24.
 */

public class JumpUtil {
    public static void toMain(Context context){
        Intent intent = new Intent(context, MainActivity.class);
        context.startActivity(intent);
    }
    public static void toWallet(Context context){
        Intent intent = new Intent(context, WalletActivity.class);
        context.startActivity(intent);
    }
    public static void toUserCenter(Context context){
        Intent intent = new Intent(context, UserCenterActivity.class);
        context.startActivity(intent);
    }
    public static void toNews(Context context){
        Intent intent = new Intent(context, NewsActivity.class);
        context.startActivity(intent);
    }
    public static void toLogin(Context context){
        Intent intent = new Intent(context, LoginActivity.class);
        context.startActivity(intent);
    }
    public static void toReg(Context context){
        Intent intent = new Intent(context, RegActivity.class);
        context.startActivity(intent);
    }
    public static void toForgetPWD(Context context){
        Intent intent = new Intent(context, ForgetPWDActivity.class);
        context.startActivity(intent);
    }
    public static void toShare(Context context){
        Intent intent = new Intent(context, ShareAppActivity.class);
        context.startActivity(intent);
    }
    public static void toSetting(Context context){
        Intent intent = new Intent(context, SettingActivity.class);
        context.startActivity(intent);
    }
    public static void toContactUs(Context context){
        Intent intent = new Intent(context, ContactUsActivity.class);
        context.startActivity(intent);
    }
    public static void toOrderDetail(Context context){
        Intent intent = new Intent(context, OrderDetailActivity.class);
        context.startActivity(intent);
    }
    public static void toOrderConfirm(Context context){
        Intent intent = new Intent(context, OrderConfirmActivity.class);
        context.startActivity(intent);
    }
    public static void toResetPwd(Context context){
        Intent intent = new Intent(context, ResetPwdActivity.class);
        context.startActivity(intent);
    }
    public static void call(Context context,String phone){
        Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:"+phone));
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        context.startActivity(intent);
    }
    public static void toAboutUs(Context context){
        Intent intent = new Intent(context, AboutUsActivity.class);
        context.startActivity(intent);
    }
    public static void toModifyMobile(Context context){
        Intent intent = new Intent(context, ModifyMobileActivity.class);
        context.startActivity(intent);
    }
}
